#include<iostream>
using namespace std;
int main()
{
	const int max=10;
	double a[max],b[max],result=0;
	int i;
	
	cout<<"input vactor a:";
	for(i=0;i<max;++i)
	  cin>>a[i];
	
	cout<<"input vactor b:";
	for(i=0;i<max;++i)
	  cin>>b[i];
	
	for(i=0;i<max;++i)
	  result+=a[i]*b[i];
	
	cout<<"output a[i]*b[i]="<<result<<endl;
	
	return 0;
}
